package shape;

import javax.media.opengl.GL2;

import util.Util;

import com.jogamp.opengl.util.gl2.GLUT;

public class Teapot extends Shape {
	
	public Teapot( double size ) {
		super();
		setSize(size, size, size);
	}
	
	public Teapot() {
		this(1.0);
	}
	
	@Override
	protected void draw( GL2 gl ) {
		gl.glRotated(90.0, 1.0, 0.0, 0.0);
		Util.glut.glutSolidTeapot(1.0);
	}
	
	@Override
	protected void drawSelected(GL2 gl) {
		gl.glRotated(90.0, 1.0, 0.0, 0.0);
		Util.glut.glutWireTeapot(1.0);
	}
}
